<base target="_self" />

<?
addScriptLink('/tinymce/tiny_mce');
//addScriptTag('/tinymce/utils/mctabs');
addScriptLink('/tinymce/plugins/tinybrowser/tb_tinymce.js.php');

//startScript('jquery, jquery.tools, jquery.sbxa, /tinymce/tiny_mce, /tinymce/plugins/tinybrowser/tb_tinymce.js.php'); 
startScript('jquery, jquery.tools, jquery.sbxa'); 
?><script>jQuery(function() {

tinyMCE.init({

		mode : "textareas",
		theme : "advanced",
		language : '<?=defined('LANG_ADMIN') ? LANG_ADMIN : 'en'?>',
		editor_deselector : "no-editor",
		plugins : "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,advlist,autolink,emotions,iespell,inlinepopups,insertdatetime,lists,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,nbspfix,tabfocus",
// autoresize,

		relative_urls : false,
	 	convert_urls : false,
		
		media_strict: false,

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example content CSS (should be your site CSS)
		content_css : "<?=autoVer('/style/mce_content.css')?>",

		// Drop lists for link/image/media/template dialogs
//		template_external_list_url : "/lib/tpl/template_list.js",
//		external_link_list_url : "lists/link_list.js",
//		external_image_list_url : "lists/image_list.js",
//		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
//		template_replace_values : {
//			username : "Some User",
//			staffid : "991234"
//		},

	width : "700",
//	height : "300",
	autoresize_min_height : 200,
	
	table_styles : "Classic=table",
	table_cell_styles : "",
	table_row_styles : "Inverted=inverted",
	table_cell_limit : "500",
	table_row_limit : "50",
	table_col_limit : "20",

    extended_valid_elements : "div[*],a[name|href|target|title|onclick|class|style|id|rel],span[class|style],td[class|style|colspan|valign|rowspan],tr[class|style|rowspan|valign],style[type],ol[start],hgroup,object[*],embed[*],param[*]",
    heading_clear_tag : "p",

   file_browser_callback : "tinyBrowser"
});

});
</script><? endScript();